package com.ruoyi.kindergarten.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 环境指标记录对象 environment_indicator
 * 
 * @author ruoyi
 * @date 2025-10-26
 */
public class EnvironmentIndicator extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 指标记录id */
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private Long environmentId;

    /** 指标值 */
    @Excel(name = "指标值")
    private BigDecimal indicatorValue;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setEnvironmentId(Long environmentId) 
    {
        this.environmentId = environmentId;
    }

    public Long getEnvironmentId() 
    {
        return environmentId;
    }

    public void setIndicatorValue(BigDecimal indicatorValue) 
    {
        this.indicatorValue = indicatorValue;
    }

    public BigDecimal getIndicatorValue() 
    {
        return indicatorValue;
    }

    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("environmentId", getEnvironmentId())
            .append("indicatorValue", getIndicatorValue())
            .append("recordTime", getRecordTime())
            .toString();
    }
}
